package com.alice.router.guigu;

/**
 * @author alice
 * @date 2021/12/24
 * @apiNote
 */
public class StringThread extends Thread{
    private String str="";

    public String getStr() {
        return str;
    }

    @Override
    public void run() {
        str=append(str);
    }

    public String append(String str){
//        System.out.println("之前"+str);
        str+="1";
        System.out.println("add----"+str);
        str=str.substring(1);
        System.out.println("delete----"+str);
        return str;
    }
}
